#_*_coding:utf-8_*_
'''
import random

x = random.randint(1,10)
coun = 0
while True and coun < 3:
    number = raw_input(u'请输入你猜的数字:')
    if number.isdigit():
        number = int(number)
        if number == x:
            print u'恭喜你，猜对了!'
            break
        elif number > x:
            print u'你猜得数字大了！'
        elif number < x:
            print u'你猜得数字小了！'
        coun += 1
    else:
        print u'你的格式输入不正确，请输入数字！'
else:
    print u'你已超过三次，请退出重新运行！'
    print u'正确的数字是:',x
'''
'''
#函数写法
import random
def x():
	return random.randint(1,10)

def Bj(x):
	coun = 0
	while coun <3:
		number = raw_input(u'请输入你猜的数字:')
		if number.isdigit():
			number = int(number)
			if number == x:
				print u'喜你，猜对了!'
				break
			elif number > x:
				print u'你猜得数字大了!'
			elif number < x:
				print u'你猜得数字小了！'
			coun += 1
		else:
			print u'你输入的类型不对，请退出重新输入！'
	else:
		print u'你已超过三次，请退出重新运行！'
		print u'正确的数字是:',x


x = x()

Bj(x)
'''


'''
print u'九九乘法'
for i in range(1,10):
	for j in range(1,10):
		if j <= i:
			print '%sx%s=%s'%(i,j,i*j),
	print ''
'''
def Jj():
	for i in range(1,10):
		for j in range(1,i+1):
			if j<=i:
				return '%sx%s=%s' %(i,j,i*j),
        return ''
print Jj()





'''
print '完全平方数'
for y in range(0,100):
	for z in range(0,100):
		if y * y - 100 == z * z - 268:
			print y*y-100,
'''
